package studiodiva.portfolio.client.view.pages;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiFactory;

import studiodiva.portfolio.client.lib.view.View;
import studiodiva.portfolio.client.model.titles.Page;

public class ContactView extends View<PageView> {

  interface Binder extends UiBinder<PageView, ContactView> {}

  static Binder uiBinder = GWT.create(Binder.class);

  private final Page page;

  public ContactView(Page page) {
    super.initialize(this.page = page);
    initWidget(uiBinder.createAndBindUi(this));
  }

  @UiFactory
  PageView createPageView() {
    return new PageView(page);
  }
}
